package com.yoyoyo666.report.mapper;

import com.yoyoyo666.report.common.ReportPage;
import com.yoyoyo666.report.model.ReportPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReportPlanMapper {
    int deleteByPrimaryKey(String id);

    int insert(ReportPlan record);

    int insertSelective(ReportPlan record);

    ReportPlan selectByPrimaryKey(String id);

    List<ReportPlan> selectAll(@Param("userId") String userId, @Param("page") ReportPage page);

    int updateByPrimaryKeySelective(ReportPlan record);

    int updateByPrimaryKey(ReportPlan record);

    long selectAllCount(@Param("userId") String userId);

    int deleteByPrimaryKeys(@Param("ids") List<String> ids);
}